package AgentTravel.LogicObjects;

import java.awt.Color;
import java.io.Serializable;

import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;

public abstract class DayPlan implements Serializable
{
	private Color color;
	public DayPlan(Color color)
	{
		this.setColor(color);
	}
	
	
	public abstract String GetPlanString();

	public JComponent GetView() {
		JPanel view = new JPanel();
		view.add(new JLabel(GetPlanString()));
		return view;
	}

	/**
	 * @param color the color to set
	 */
	public void setColor(Color color) {
		this.color = color;
	}


	/**
	 * @return the color
	 */
	public Color getColor() {
		return color;
	}

}
